package org.celstec.mobilegame.gamaray;

public class OverlayImg extends Overlay{
	
	public String assetId;

	
	public OverlayImg(String assetId, int x, int y, String anchor, String onPress, String id){
		super(x, y, anchor, onPress, id);
		this.assetId = assetId;
	}
	
	public String toXml(String url) {
		String ret = "  <overlayImg id=\""+id+"\">\n";
		ret += "   <assetId>" + assetId + "</assetId>\n";
		ret += "   <x>" + x + "</x>\n";
		ret += "   <y>" + y + "</y>\n";
		ret += "   <anchor>" + anchor + "</anchor>\n";
		if (onPress !=null) ret += "   <onPress>dimension: " + url+onPress + "</onPress>\n";
		ret += "  </overlayImg>\n";
		return ret;
	}

}
